From: Glenn Morris Date: Fri, 20 Feb 2009 06:06:18 +0000 (+0000) Subject: Daniel Jensen (tiny change) X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~1670 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=fccde1c1114f76a7c6baac1f07a54f6fb7ed6589;p=emacs.git Daniel Jensen (tiny change) (apropos-library): Check for null filename in load-history. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 11f460ed7d4..9638cb6b1f6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2009-02-20 Daniel Jensen (tiny change) + + * apropos.el (apropos-library): Check for null filename in load-history. + 2009-02-20 Glenn Morris * apropos.el (apropos-library): Remove the element with null filename, diff --git a/lisp/apropos.el b/lisp/apropos.el index 91e763185b6..375b19eebe7 100644 --- a/lisp/apropos.el +++ b/lisp/apropos.el @@ -593,7 +593,7 @@ thus be found in `load-history'." (re (concat "\\(?:\\`\\|[\\/]\\)" (regexp-quote file) "\\(\\.\\|\\'\\)"))) (while (and lh (null lh-entry)) - (if (string-match re (caar lh)) + (if (and (caar lh) (string-match re (caar lh))) (setq lh-entry (car lh)) (setq lh (cdr lh))))) (unless lh-entry (error "Unknown library `%s'" file)))